package com.fenghuajueli.module_user.provider;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.blankj.utilcode.util.ToastUtils;
import com.fenghuajueli.lib_provider.UserModuleProvider;
import com.fenghuajueli.libbasecoreui.baseswitch.PublicFunction;
import com.fenghuajueli.module_route.UserModuleRoute;
import com.fenghuajueli.module_user.utils.UserModuleInitUtils;

@Route(path = UserModuleRoute.USER_EXPORT_PROVIDER)
public class UserModuleProviderImpl implements UserModuleProvider {

    private Context context;


    @Override
    public void goComment(Context context) {
        ToastUtils.showLong("我调用了用户系统模块");
        PublicFunction.goComment(context);
    }

    @Override
    public void goBuyVip() {
        PublicFunction.goBuyVip();
    }

    @Override
    public void updateUserInfoByToken() {
        UserModuleInitUtils.updateUserInfoByToken();
    }


    @Override
    public void init(Context context) {
        this.context = context;
    }
}
